<?php


namespace app\admin\model;


use app\common\model\TimeModel;

class SystemErrorLog extends TimeModel
{
    public function addError($data, $remark = '')
    {
        $content = is_string($data) ? $data : json_encode($data);
        return $this->save(['content' => $content, 'remark' => $remark, 'date' => date('Y-m-d H:i:s')]);
    }

}